/**商品分类接口封装 */
import axios from "../utils/request"

// 查询分类数据
export const getCateList = () => axios({
    url: "/api/catelist?istree=1"
})
// 新增分类数据
export const addCate = cateForm => axios({
    url: "/api/cateadd",
    method: "POST",
    data: cateForm
})

// 删除类别数据
export const delCate = id => axios({
    url: "/api/catedelete",
    method: "POST",
    data: { id }
})
// 编辑类别数据
export const editCate = cateForm => axios({
    url: "/api/cateedit",
    method: "POST",
    data: cateForm
})